<?php
/** 前置方法 */
namespace app\api\controller;

use think\Controller;
use app\api\service\Token as TokenService;

class BaseController extends Controller{
    //用户和管理员权限
    protected function checkPrimaryScope(){
        TokenService::needPrimaryScope();
    }

    //只用户权限
    protected function checkExclusiveScope(){
        TokenService::needExclusiveScope();
    }
}